package com.estun.backroundManagementService.modules.product.model;
/*
 * @author pengbo
 * @date 2024/4/3 14:00
 * @description 产品参数阈值表实体类
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("product_value_threshold")
@ApiModel(value = "ProductValueThreshold对象", description = "产品参数阈值表")
public class ProductValueThreshold {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private int id;

    @ApiModelProperty(value = "所属站ID")
    private String stationId;

    @ApiModelProperty(value = "参数类型max或者min")
    private String thresholdType;

    @ApiModelProperty(value = "参数名称")
    private String name;

    @ApiModelProperty(value = "阈值")
    private String value;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
